package com.shaozi.nc.mq.bean.base;

import com.shaozi.utils.common.BeanUtils;

/**
 * Biz部分的基类
 * 
 * @author brenx
 *
 */
public class TypeBizBaseBean extends BizBaseBean {
	public final static String TYPE_customer = "push.msg.oa.type.customer";
	public final static String TYPE_sale = "push.msg.oa.type.sale";
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Integer type;

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
	
	public String getTypeName(){
		if(this.type==null||this.type!=1){
			return BeanUtils.getConfig().getValue(TYPE_sale);
		}else{
			return BeanUtils.getConfig().getValue(TYPE_customer);
		}
	}
}
